html, body, #root {
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: #f8fafc;
  color: #1e293b;
}

@media (prefers-color-scheme: dark) {
  html, body, #root {
    background-color: #f8fafc;
    color: #1e293b;
  }
}

.container {
  max-width: 80%;
  width: 100%;
  margin: 80px auto;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  position: relative;
}

.social-links {
  position: absolute;
  top: -60px;
  right: 0;
  z-index: 100;
}

.game-info {
  margin-bottom: 16px;
  text-align: right;
  font-size: 18px;
  color: #94a3b8;
}

.restart-button {
  padding: 8px 24px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background: #646cff;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.restart-button:hover {
  background: #747bff;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.clear-cache-button {
  padding: 8px 24px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background: #ff3a3a;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.clear-cache-button:hover {
  background: #ff6d6d;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 16px;
    margin-top: 60px;
  }

  .social-links {
    top: -45px;
  }
}

.game-info-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.game-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  justify-content: center;
}

.surrender-button {
  padding: 6px 12px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  background: #ef4444;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.surrender-button:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.hint-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f8fafc;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hint-label {
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

.hint-text {
  color: #1e293b;
  font-size: 14px;
}

@media (prefers-color-scheme: dark) {
  .hint-container {
    background: #1e293b;
  }

  .hint-label {
    color: #94a3b8;
  }

  .hint-text {
    color: #f1f5f9;
  }
}

.timer {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin: 10px 0;
  text-align: center;
}

.timer span {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 5px 15px;
  border-radius: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}